package com.tledu.production.mapper.people;

import com.tledu.production.model.people.Department;
import com.tledu.production.model.people.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/17  9:38
 */
public interface EmployeeMapper {
    //查询所有
     List<Employee> findAll();
     //根据id查询
     Employee findById(String id);
     //添加
     int add(Employee employee);
     //编辑
    int edit(Employee employee);
    //删除
    int batchDel(String[] ids);
    //删除(根据部门id)
    int batchDelByDepId(String[] depIds);
    //搜索
    List<Employee> search(@Param("type") String type, @Param("searchText") String searchText);
}
